package com.shenzhenai.module_principles.demo2.before;

/**
 * @author huangzehui
 * @date 13/8/2025 上午12:09 周三
 * @description 正方形类
 */
public class Square extends Rectangle{

    @Override
    public void setLength(double length) {
        super.setLength(length);
        super.setWidth(length);
    }

    @Override
    public void setWidth(double width) {
        setLength(width);
    }
}
